<template>
  <div>
    <div class="weekend-title">
      <span>周末去哪儿</span>
    </div>
    <ul>
      <li class="weekend-item" v-for="item in weekendList" :key="item.id">
        <div>
          <img class="weekend-image" :src="item.imgUrl" />
        </div>

        <div class="weekend-desc">{{item.title}}</div>
        <div class="weekend-detail">{{item.desc}}</div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'Weekend',
  props: {
    weekendList: Array
  },
  data() {
    return {}
  },
  computed: {}
}
</script>

<style scoped lang="stylus">
@import '~styles/mixins.styl';

.weekend-title {
  line-height: 0.8rem;
  text-indent: 0.2rem;
  font-size: 0.32rem;
  background: #f5f5f5;
}

.weekend-item {
  .weekend-image {
    width: 100%;
    height: 100%;
  }

  .weekend-desc {
    text-indent: 0.2rem;
    margin: 0.2rem 0;
  }

  .weekend-detail {
    text-indent: 0.2rem;
    margin-bottom: 0.2rem;
    color: #616161;
    font-size: 0.24rem;
  }
}
</style>
